package org.dtrd.modules.questionnaire.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.questionnaire.entity.po.DtrdEntRdQuestionnaire;
import java.util.Date;

/**
 * <p>
 * 调查问卷表
 * </p>
 *
 * @author xiao
 * @since 2022-06-16
 */
@Getter
@Setter
@ApiModel(value = "调查问卷表详情")
public class QuestionnaireDetail {

    private Integer dataId;

    @ApiModelProperty("问卷类型")
    private String type;

    @ApiModelProperty("分类")
    private String category;

    @ApiModelProperty("缩略图")
    private String thumb;

    @ApiModelProperty("题干")
    private String question;

    @ApiModelProperty("选项")
    private String options;

    @ApiModelProperty("排序")
    private Integer sort;



    public QuestionnaireDetail parseFromPo(DtrdEntRdQuestionnaire po) {
        dataId = po.getDataId();
        type = po.getType();
        category = po.getCategory();
        thumb = po.getThumb();
        question = po.getQuestion();
        options = po.getOptions();
        sort = po.getSort();
        return this;
    }
}
